import {lazy} from "react"
const routerconfig = [
    {
        path:"/login",
        element:lazy(()=>import("../pages/Login"))
    },
    {
        path:"/home",
        element:lazy(()=>import("../pages/Home/Home")),
        children:[
            {
                path:"/home/shop",
                element:lazy(()=>import("../pages/Home/Shop"))
            },
            {
                path:"/home/order",
                element:lazy(()=>import("../pages/Home/Order"))
            },
            {
                path:"/home/data",
                element:lazy(()=>import("../pages/Home/Data"))
            }
        ]
    },
    {
        from:"/",
        to:"/login"

    }
]
export default routerconfig